package com.feri.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_pay_log")
@NoArgsConstructor
public class PayLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long pid;
    private int flag;
    private String info;
    private Date ctime;

    public PayLog(Long pid, int flag, String info) {
        this.pid = pid;
        this.flag = flag;
        this.info = info;
        this.ctime=new Date();
    }
}
